package com.itheima.demo6executorService;

//可以继续继承其他类和接口 扩展性强
class MyRunnable implements Runnable
{
    @Override
    public void run()
    {
        for (int i = 0; i < 5; i++)
        {
            System.out.println(Thread.currentThread().getName() + "线程输出" + i);
        }
    }
}
